package com.chance.cc.crawler.prod.command.schedule.vm.autohome;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.autohome.adhoc.AutoHomeSimpleRedisToRunCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-08 14:12:56
 * @email okprog@sina.com
 */
public class AutoHomeSimpleCrawlerJobSchedule extends CommonCrawlerJobSchedule {


    public static void main(String[] args) {
        //autoHomeSimpleCrawlerScheduleJob(AutoHomePraiseSimpleCrawlerSchedulerJob.autoHomeScheduler());//车系页口碑临时采集
     //  autoHomeSimpleCrawlerScheduleJob(AutoHomeForumReleaseSimpleCrawlerSchedulerJob.autoHomeScheduler());//车系页论坛按发布时间临时采集
//        autoHomeSimpleCrawlerScheduleJob(AutoHomeForumReplySimpleCrawlerSchedulerJob.autoHomeScheduler());//车系页论坛按回复时间临时采集
//        autoHomeSimpleCrawlerScheduleJob(AutoHomeArticleSimpleCrawlerSchedulerJob.autoHomeScheduler());
//        autoHomeSimpleCrawlerScheduleJob(AutoHomeCheArticleSimpleCrawlerSchedulerJob.autoHomeScheduler());

        //吉利项目
//        autoHomeSimpleCrawlerScheduleJob(AutoHomeForumReleaseCrawlerSchedulerJob.autoHomeScheduler());

        //20210723宝马项目
     //  autoHomeSimpleServiceCrawlerScheduleJob(AutoHomePraiseSimpleCrawlerSchedulerJob.autoHomeScheduler(),device_name_1);
    //四垂眉采集任务
        //autoHomeSimpleCrawlerScheduleJob(AutoHomeSimpleRedisToRunCrawlerScheduleJob.autohomeArticle());//文章
        autoHomeSimpleCrawlerScheduleJob(AutoHomeSimpleRedisToRunCrawlerScheduleJob.autohomeScheduleCarHomeArticle());//车家号文章
        //autoHomeSimpleCrawlerScheduleJob(AutoHomeSimpleRedisToRunCrawlerScheduleJob.autohomeScheduleCarHomeVideo());//车家号视频
      //  autoHomeSimpleCrawlerScheduleJob(AutoHomeSimpleRedisToRunCrawlerScheduleJob.autohomeScheduleCarHomeArticle());

    }

    public static void autoHomeSimpleCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_6);
    }
    public static void delCrawler(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_6);
    }

    public static void autoHomeSimpleServiceCrawlerScheduleJob(CrawlerJob crawlerJob,String device){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device);
    }
}
